.section .data

helloworld:
    .ascii "hello world\n\0"

.section .text
.globl  _start
_start:
    push    $helloworld
    call    printf

    push    $0
    call    exit

# as --32 helloworld_lib_32.s -o helloworld_lib_32.o
# ld -m elf_i386 -I /lib/ld-linux.so.2 -o helloworld_lib_32 helloworld_lib_32.o -lc
